﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x0200097D RID: 2429
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class InteractTreasureDungeonGridScRsp : IMessage<InteractTreasureDungeonGridScRsp>, IMessage, IEquatable<InteractTreasureDungeonGridScRsp>, IDeepCloneable<InteractTreasureDungeonGridScRsp>, IBufferMessage
	{
		// Token: 0x17001EC7 RID: 7879
		// (get) Token: 0x06006D0C RID: 27916 RVA: 0x0012477F File Offset: 0x0012297F
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<InteractTreasureDungeonGridScRsp> Parser
		{
			get
			{
				return InteractTreasureDungeonGridScRsp._parser;
			}
		}

		// Token: 0x17001EC8 RID: 7880
		// (get) Token: 0x06006D0D RID: 27917 RVA: 0x00124786 File Offset: 0x00122986
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return InteractTreasureDungeonGridScRspReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17001EC9 RID: 7881
		// (get) Token: 0x06006D0E RID: 27918 RVA: 0x00124798 File Offset: 0x00122998
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return InteractTreasureDungeonGridScRsp.Descriptor;
			}
		}

		// Token: 0x06006D0F RID: 27919 RVA: 0x0012479F File Offset: 0x0012299F
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public InteractTreasureDungeonGridScRsp()
		{
		}

		// Token: 0x06006D10 RID: 27920 RVA: 0x001247A8 File Offset: 0x001229A8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public InteractTreasureDungeonGridScRsp(InteractTreasureDungeonGridScRsp other) : this()
		{
			this.retcode_ = other.retcode_;
			this.eDPHOKHAPIK_ = ((other.eDPHOKHAPIK_ != null) ? other.eDPHOKHAPIK_.Clone() : null);
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x06006D11 RID: 27921 RVA: 0x001247F4 File Offset: 0x001229F4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public InteractTreasureDungeonGridScRsp Clone()
		{
			return new InteractTreasureDungeonGridScRsp(this);
		}

		// Token: 0x17001ECA RID: 7882
		// (get) Token: 0x06006D12 RID: 27922 RVA: 0x001247FC File Offset: 0x001229FC
		// (set) Token: 0x06006D13 RID: 27923 RVA: 0x00124804 File Offset: 0x00122A04
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Retcode
		{
			get
			{
				return this.retcode_;
			}
			set
			{
				this.retcode_ = value;
			}
		}

		// Token: 0x17001ECB RID: 7883
		// (get) Token: 0x06006D14 RID: 27924 RVA: 0x0012480D File Offset: 0x00122A0D
		// (set) Token: 0x06006D15 RID: 27925 RVA: 0x00124815 File Offset: 0x00122A15
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public TreasureDungeonLevel EDPHOKHAPIK
		{
			get
			{
				return this.eDPHOKHAPIK_;
			}
			set
			{
				this.eDPHOKHAPIK_ = value;
			}
		}

		// Token: 0x06006D16 RID: 27926 RVA: 0x0012481E File Offset: 0x00122A1E
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as InteractTreasureDungeonGridScRsp);
		}

		// Token: 0x06006D17 RID: 27927 RVA: 0x0012482C File Offset: 0x00122A2C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(InteractTreasureDungeonGridScRsp other)
		{
			return other != null && (other == this || (this.Retcode == other.Retcode && object.Equals(this.EDPHOKHAPIK, other.EDPHOKHAPIK) && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x06006D18 RID: 27928 RVA: 0x0012487C File Offset: 0x00122A7C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.Retcode != 0U)
			{
				num ^= this.Retcode.GetHashCode();
			}
			if (this.eDPHOKHAPIK_ != null)
			{
				num ^= this.EDPHOKHAPIK.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x06006D19 RID: 27929 RVA: 0x001248D1 File Offset: 0x00122AD1
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x06006D1A RID: 27930 RVA: 0x001248D9 File Offset: 0x00122AD9
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x06006D1B RID: 27931 RVA: 0x001248E4 File Offset: 0x00122AE4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.eDPHOKHAPIK_ != null)
			{
				output.WriteRawTag(10);
				output.WriteMessage(this.EDPHOKHAPIK);
			}
			if (this.Retcode != 0U)
			{
				output.WriteRawTag(64);
				output.WriteUInt32(this.Retcode);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x06006D1C RID: 27932 RVA: 0x00124940 File Offset: 0x00122B40
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.Retcode != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Retcode);
			}
			if (this.eDPHOKHAPIK_ != null)
			{
				num += 1 + CodedOutputStream.ComputeMessageSize(this.EDPHOKHAPIK);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x06006D1D RID: 27933 RVA: 0x00124998 File Offset: 0x00122B98
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(InteractTreasureDungeonGridScRsp other)
		{
			if (other == null)
			{
				return;
			}
			if (other.Retcode != 0U)
			{
				this.Retcode = other.Retcode;
			}
			if (other.eDPHOKHAPIK_ != null)
			{
				if (this.eDPHOKHAPIK_ == null)
				{
					this.EDPHOKHAPIK = new TreasureDungeonLevel();
				}
				this.EDPHOKHAPIK.MergeFrom(other.EDPHOKHAPIK);
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x06006D1E RID: 27934 RVA: 0x00124A00 File Offset: 0x00122C00
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x06006D1F RID: 27935 RVA: 0x00124A0C File Offset: 0x00122C0C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 10U)
				{
					if (num != 64U)
					{
						this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
					}
					else
					{
						this.Retcode = input.ReadUInt32();
					}
				}
				else
				{
					if (this.eDPHOKHAPIK_ == null)
					{
						this.EDPHOKHAPIK = new TreasureDungeonLevel();
					}
					input.ReadMessage(this.EDPHOKHAPIK);
				}
			}
		}

		// Token: 0x04002992 RID: 10642
		private static readonly MessageParser<InteractTreasureDungeonGridScRsp> _parser = new MessageParser<InteractTreasureDungeonGridScRsp>(() => new InteractTreasureDungeonGridScRsp());

		// Token: 0x04002993 RID: 10643
		private UnknownFieldSet _unknownFields;

		// Token: 0x04002994 RID: 10644
		public const int RetcodeFieldNumber = 8;

		// Token: 0x04002995 RID: 10645
		private uint retcode_;

		// Token: 0x04002996 RID: 10646
		public const int EDPHOKHAPIKFieldNumber = 1;

		// Token: 0x04002997 RID: 10647
		private TreasureDungeonLevel eDPHOKHAPIK_;
	}
}
